package com.minshenglife.zanzan.entity;

import java.text.SimpleDateFormat;
import java.util.Date;

import com.minshenglife.commons.dal.BaseEntity;

/**
 * 积分流水
 * @author Huodd
 * @date 2014.02.14
 */
public class Integral extends BaseEntity{

	private String integralType;
	private Integer integralNum;
	private String integralManId;
	private String state;
	private Date create_time;
	private String createTimeStr;
	
	public Integral(){}
	public Integral(String integralType,Integer integralNum,String integralManId,String state){
		this.integralType=integralType;
		this.integralNum=integralNum;
		this.integralManId=integralManId;
		this.state=state;
	}
	
	public String getIntegralType() {
		return integralType;
	}
	public void setIntegralType(String integralType) {
		this.integralType = integralType;
	}
	public Integer getIntegralNum() {
		return integralNum;
	}
	public void setIntegralNum(Integer integralNum) {
		this.integralNum = integralNum;
	}
	public String getIntegralManId() {
		return integralManId;
	}
	public void setIntegralManId(String integralManId) {
		this.integralManId = integralManId;
	}
	public String getState() {
		return state;
	}
	public void setState(String state) {
		this.state = state;
	}
	public Date getCreate_time() {
		return create_time;
	}
	public void setCreate_time(Date create_time) {
		this.create_time = create_time;
	}
	public String getCreateTimeStr() {
		if(createTimeStr==null){
			createTimeStr=new SimpleDateFormat("MM月dd日 hh:mm").format(create_time);
		}
		return createTimeStr;
	}
	public void setCreateTimeStr(String createTimeStr) {
		this.createTimeStr = createTimeStr;
	}
	
}
